//BM_SETIMAGE Message. Associates a new image (icon or bitmap) with the button.
#include <windows.h>
#include "Main.h"
#include "AstarPathFind.h"
#include "Path.h"
#include "Select.h"
#include "QuadRenderer.h"
#include "2DDevice.h"
#include "Window.h"
#include "Map.h"
#include "Vis.h"
#include "BinaryHeap.h"
#include "LineRenderer.h"

#pragma comment (lib,"d3dxof.lib")
#pragma comment (lib,"dxguid.lib")
#pragma comment (lib,"d3dx9d.lib")
#pragma comment (lib,"d3d9.lib")
#pragma comment (lib,"winmm.lib")










int main()
{
	cMain Main = cMain();
cPath Path = cPath(Main); 
	
	cWindow Window = cWindow(Main);
	Window.CalculateDimensions();
	c2DDevice TwoDDevice = c2DDevice(Main);
	cMap Map = cMap(Main);
	cSelect	Select = cSelect(Main);
	Select.Restart();
	cVis Vis = cVis(Main);
	cAstarPathFind AstarPathFind = cAstarPathFind(Main); 
	cBinaryHeap BinaryHeap = cBinaryHeap(Main);
	cQuadRenderer QuadRenderer = cQuadRenderer(Main);
	cLineRenderer LineRenderer = cLineRenderer(Main);
	
	Main.Init(&Window, &TwoDDevice, &Map, &Select, &Vis, &AstarPathFind, &BinaryHeap, &QuadRenderer, &LineRenderer, &Path);


	
	Main.MainLoop();

    return 0;
}

